package demo02;

interface MyInterface {
    int cale(int a, int b);
}

class Aaa {
    public int getResult(int a, int b, MyInterface myInterface) {
        return myInterface.cale(a, b);
    }

}

public class Test01 {
    public static void main(String[] args) {
        Aaa aaa = new Aaa();
        int result = aaa.getResult(1, 2, (a, b) -> a - b);
        System.out.println(result);
    }
}
